<%--
  Created by IntelliJ IDEA.
  User: 86492
  Date: 2022/4/9
  Time: 17:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link href="css/register.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<c:if test="${param.status==2}">
    <script>alert("注册失败！");</script>
</c:if>
<div class="regiester_div">
    <h1>学生管理系统-管理端注册</h1>
<%--                                            加密类型   多部份/表-数据--%>
    <form action="register" method="post" enctype="multipart/form-data" >
        <table >
            <tr>
                <td>头像：</td>
                <td> <input type="file" name="file" style="border-color: black"/></td>
            </tr>

            <tr>
                <td>用户名：</td>
                <td> <input type="text" name="username" placeholder=" 请输入用户名"/></td>
            </tr>

            <tr>
                <td>密码：</td>
                <td> <input type="password" name="password" placeholder=" 请输入密码"/></td>
            </tr>

            <tr>
                <td>重复密码：</td>
                <td>
                    <input type="password" name="againPassword" placeholder=" 请输入重复密码"/>
                    <!-- 判定重复密码正确与否 显示 -->
                    <c:if test="${param.status == '1'}">
                        <span style="color: red;">重复密码错误</span>
                    </c:if>
                </td>


            </tr>

            <tr>
                <td>真实姓名：</td>
                <td> <input type="text" name="name" placeholder=" 请输入姓名"/></td>
            </tr>

            <tr>
                <td>性别：</td>
                <td>
                    <input type="radio" name="sex" value="男"  style="width: 20px ;height: 20px;" checked/>男
                    <input type="radio" name="sex" value="女" style="width: 20px ;height: 20px;" />女
                </td>
            </tr>

            <tr>
                <td>生日：</td>
                <td> <input type="date" name="birthday"/></td>
            </tr>


            <tr>
                <td>权限：</td>
                <td>
                    <input name="power" type="checkbox" value="1" style="width: 20px ;height: 20px;"/>查看
                    <input name="power" type="checkbox" value="2" style="width: 20px ;height: 20px;"/>增加
                    <input name="power" type="checkbox" value="3" style="width: 20px ;height: 20px;"/>删除
                </td>
            </tr>

            <tr>
                <td>籍贯：</td>
                <td>
                    <select name="natives">
                        <option value="1">广东省</option>
                        <option value="2">广西省</option>
                        <option value="3">湖北省</option>
                        <option value="4">湖南省</option>
                    </select>

                </td>
            </tr>


            <!-- 注册   重置 -->
            <tr >
                <td colspan="2" style="text-align: center;">
                    <button>注册</button>
                    &nbsp;
                    <button type="reset">重置</button>
                </td>
            </tr>

        </table>


    </form>
</div>


</body>
</html>

